package com.mit.wx.service;

import com.mit.wx.entity.AutoReplyRule;

/**
 * 2018/10/12 Create by 郭文梁
 * AutoReplyRuleService
 * 自动回复规则服务组件
 *
 * @author 郭文梁
 * @date 2018/10/12
 */
public interface AutoReplyRuleService extends BaseService<AutoReplyRule> {
    /**
     * 寻找匹配类型的规则
     *
     * @param msg 消息
     * @return 规则
     */
    AutoReplyRule findMatchingRule(String msg);

    /**
     * 寻找相似类型的规则
     *
     * @param msg 消息
     * @return 规则
     */
    AutoReplyRule findContainRule(String msg);
}
